<%@page import="com.wowangz.cms.common.utils.DataDictionaryManage"%>
<%@page import="com.wowangz.cms.common.utils.DictTypeConstant"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/pageHead.jsp"%>
<link rel="stylesheet" href="${systemctx}/resources/css/fileupload.css">
<script type="text/javascript">
	$(document).ready(function() {
		$("#butReturn").click(function(){
			parent.document.location.reload();
		    $.fn.closeIssWindow();
		});
	});
	//flag == 4 通过 flag == 3 拒绝
	function approve(flag,msg){
		if(confirm(msg)){
			$.getJSON('${systemctx}/dailyoperation/store/approve.web?flag='+flag + "&id=${store.id}",function(data){
				//data = jQuery.parseJSON(data);
				if(data.messagetype==1){
					alert(data.message);
					window.location.href='${systemctx}/dailyoperation/store/approveList.web';
				}else{
					alert(data.message);
					return false;
				}
			});
		}
	}
</script>
<form name="form1" id="form1" action="" method="post">
	<div class="pageMain">
		<div class="pageTitle">
			<%=MessageResourcesUtils.getMessage(request, "systemmanage.storemanagement.title")%>
			<span></span>
			<c:if test="${not empty approval && approval==1 }">
				<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.apply.title") %>
			</c:if>
			<c:if test="${not empty approval && approval==2 }">
				<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.manage.title") %>
			</c:if>
			<c:if test="${empty approval}">
				<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.register.title") %>
			</c:if>
			<span></span>
			<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.detail.title") %>
		</div>
		<div class="pageBody">
			<div class="form-group">
				<ul>
					<li class="paymentHeadStyle liw">
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.register.info") %>
						</label>
					</li>
				</ul>
				<ul>
					<li>
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.number") %>
						</label>
						<span>${store.number}</span>
					</li>
					<li>
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.name") %>
						</label>
						<span>${store.name}</span>
					</li>
				</ul>
				<ul>
					<li>
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.corporate") %>
						</label>
						<span>${store.corporate}</span>
					</li>
					<li>
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.quality") %>
						</label>
						<span>${store.qualityStr}</span>
					</li>
				</ul>
				<ul>
					<li>
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.population") %>
						</label>
						<span>${store.populationStr}</span>
					</li>
					<li>
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.pCity") %>
						</label>
						 <span>${store.address}</span>
					</li>
				</ul>
				<ul>
					<li>
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.industry") %>
						</label>
						<span> ${store.industryStr}</span>
					</li>
					<li>
						<i></i>
						<label>
							<!-- 营业执照号码 -->
							<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.column.businesslicensecode") %>
						</label>
						<span>
							${store.businesslicensecode}
						</span>
					</li>
				</ul>
				<ul>
					<li>
						<i></i>
						<label>
							<!-- 机构代码证号码 -->
							<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.column.organizationcode") %>
						</label>
						<span>
							${store.organizationcode}
						</span>
					</li>
					<li>
						<i></i>
						<label>
							<!-- 税务登记证号码 -->
							<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.column.certificatecode") %>
						</label>
						<span>
							${store.certificatecode}
						</span>
					</li>
				</ul>
				
				<ul>
					<li class="liw">
						<i></i>
						<label>
							<!-- 营业执照扫描件上传 -->
							<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.column.businesslicenseid") %>
						</label>
						<span>
							<a href="${systemctx}/dailyoperation/store/attachment/download.json?id=${store.businesslicenseid}">${attachment.name}</a>
						</span>
					</li>
				</ul>
				<ul>
					<li class="liw">
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.column.website") %>
						</label>
						<span>
							${store.website }
						</span>
					</li>
				</ul>
				<ul>
					<li>
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.description") %>
						</label>
						<span>${store.description}</span>
					</li>
				</ul>
				<ul>
					<li class="paymentHeadStyle liw">
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request, "dailyoperation.store.contacts.info") %>
						</label>
					</li>
				</ul>
				<ul>
					<li>
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.realname") %>
						</label>
						<span>${store.realname}</span>
					</li>
					<li>
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.telephonenumber") %>
						</label>
						<span>${store.telephonenumber}</span>
					</li>
				</ul>
				<ul>
					<li>
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.email") %>
						</label>
						<span>${store.email}</span>
					</li>
					<li>
						<i></i>
						<label>
							<%=MessageResourcesUtils.getMessage(request,"dailyoperation.store.column.phonenumber") %>
						</label>
						<span>${store.phonenumber}</span>
					</li>
				</ul>
			</div>
			<div class="button-group">
				<input type="button" class="btn btn-default" id="butReturn" name="butReturn" value='<%=MessageResourcesUtils.getMessage(request, "common.button.back") %>' />
			</div>
		</div>
	</div>
</form>

<%-- 引入页面尾 --%>
<%@ include file="/pageFloor.jsp"%>